home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
comm
/
bug13.zip
/
BUG.DOC
< prev
next >
Wrap
Text File
|
1992-03-20
|
11KB
|
371 lines
BUG : "3k BYTES COMM PROGRAM"
=============================
(v 1.3 01-Feb-1992)
by
Maurizio Ammannato
HAPPYWARE CONCEPT
=================
My personal concept of HAPPYWARE is to deliver a fully working package at $0
licence fee to enjoy together this fantastic opportunity to share ideas and
knowledge over physical, cultural, race and religious boundaries.
Use it as you want, but don't make any kind of profit on my work which you've
received free of charge.
MY PREFERRED SENTENCE
=====================
"Nothing is better than to remain honest and integer. Nothing is better than
to fix one's eyes without casting down owns. But you must be prepared to pay
an high price for that." (Oiziruam Otannamma)
Maurizio Ammannato
Via Preguda N.60
22049 Valmadrera (CO)
I T A L Y
---------------------
(tel. 39-341-581081)
==================
BUG.COM 3468 bytes
==================
WHY BUG
=======
BUG is a very compact program but with all the vital features for an usual
communication package. I made it to demonstrate that is possible to have a
working communication program without generating elephantine code.
I can claim that BUG is the smallest asynchronous communication program for
MS-DOS in the world, but I'm expecting to be denied!
EXECUTING BUG
=============
BUG uses FOSSIL drivers, version 5 and later. BUG has been extensively tested
with X00 driver version 1.24. You can find this driver on public BBS like
GEnie (X00V12.ZIP). See below for more details on the use of this
communication driver.
To execute BUG you must have just installed the FOSSIL driver, then you have
to use the command line format as following :
======================================
BUG Port Speed Bits Parity [INPutFile]
======================================
- "Port" : communication port number (1 or 2)
- "Speed" : port speed (from 1200 bps up to 9600 bps, no 300 bps)
- "Bits" : number of bits (7 or 8). STOP bit/s are set up automatically
- "Parity" : E for Even, O for Odd or N for None
- "INPutFile": optional name for Input File (default = BUG.INP)
===================================================
ALL PARAMETERS ARE MANDATORY EXCEPT FOR "INPutFile"
===================================================
C>BUG 1 2400 7 E BUG at 2400 bps parity Even from port 1, bit 7
C>BUG 2 9600 8 N BUG at 9600 bps parity None from port 2, bits 8
C>BUG 1 4800 7 E A.INP BUG using the file A.INP as Input File, bits 7
You can use more .BAT files with different BUG command lines for different
communication needs.
BUG ALIVE
=========
Once executed you get a 24 lines screen plus the 25th with the list of the
commands you can use.
- F1 Printer ON/OFF (when ON you see a "P" in the middle of the 25th)
Default=OFF
- F2 Capture file ON/OFF (when ON you see a "C". Display or print BUG.CAP
file after the connection to get all comm session). Default=ON
- F3 Flow ON/OFF (when ON you see an "F". Remember to set the flow control
also on host: expecially useful while printing long documents on-line)
Default=OFF
- F4 ASCII file upload (any key to escape)
- F5 Shell to DOS (driver is temporarily deinizialized so that you can
execute from DOS also programs using the same port. Type EXIT to come
back to BUG)
- F6 Read next string from input BUG.INP file and send it to modem/host
(see below)
- F7 Send a true break to the host
- F8 Execute S.BAT file and come back to BUG at its end ( That is very
useful to upload files to host using external protocols like XMODEM or
KERMIT or ZMODEM; it's up to you to structure S.BAT file for your
needs.)
- F9 Execute R.BAT file and come back to BUG at its end ( That is very
useful to download files from host using external protocols like
XMODEM or KERMIT or ZMODEM; it's up to you to structure R.BAT file for
your needs.)
- F10 To exit to DOS
- Alt-J for Jolly. Pressing together both these keys, BUG executes J.BAT
batch file. You can use this J.BAT file as a Jolly;to execute another Error
Free Protocol, or to execute a local Editor to modify a file before
uploading it, etc. or finally to be able to come back to the beginning of a
connection and navigate all the working session. To do that, prepare the
following jolly J.BAT batch file:
@echo off
list bug.cap (or any listing program you have)
That's all. Now each time you press Alt-J keys, you get all comm session
from the beginning.
SCRIPT FILE
===========
In reality BUG uses a pseudo script capability. To use this powerful option
build with your preferred text editor the file BUG.INP. Write on each line
the string you want to send to modem/host at a specific time.
Let me image you want to initialize the modem, call host number, send
password and finally set some communication parameters. Edit BUG.INP file and
write the following lines :
~ATZ wait .2 sec, then send reset modem string
ATE0%C1\N3.... set modem for reliable
ATDP1616161616 call host
xjm12345,pippo send User Number and User Password
set fn set flow control ON, on the host side
set c[char] set decimal 8 as cancel character (backspace)
Once executed BUG via GO.BAT file, press firstly the F6 functional key to
allow BUG to read the first BUG.INP line and to send it to modem.
Wait for the modem "OK", then press again F6 key for the second line and so
forth. For each F6 use, BUG reads and sends the next line in BUG.INP file up
to its end. F6 key is inactive if BUG doesn't find any BUG.INP file or has
reached the end.
You can use many .INP files with different commands. For example "BUG 1 2400
7 E GENIE.INP" can be specialized for downloading from GEnie Service using
the following script :
~ATZ...
ATDP1616161616
xjm12345,pippo
move 615;3
6
INITIALIZING X00 FOSSIL DRIVE
=============================
You can use any FOSSIL drive you want. Any way BUG has been tested with X00
driver. Follow this simple procedure to quickly work with BUG.
1) Download X00V12.ZIP shareware file from your preferred BBS
2) Decompress it as appropriate (i.e. C:>PKUNZIP X00V12)
3) Take only X00.SYS file and copy it into BUG directory
4) Rename X00.SYS to X00.EXE
5) Execute GO.BAT (in my package)
GO.BAT FILE
===========
My GO.BAT file loads X00 driver with 4096 bytes for the Receive comm buffer
and 1024 for the Transmit comm buffer, then executes BUG, finally deallocates
X00 from the main memory. GO.BAT file looks like :
@echo off
X00>NUL R=4096 T=1024 E allocate X00 driver
BUG 1 2400 7 E execute BUG port 1,2400 bps,7 bits,Even
X00>NUL deallocate X00 driver
Modify GO.BAT communication parameters (both BUG and X00) if you have
different needs. If instead you prefer to have X00 driver always loaded, put
X00.SYS into main root directory (where the other .SYS are) and add the
following line to CONFIG.SYS file :
DEVICE=X00.SYS R=4096 T=1024 E
In this case remove from GO.BAT file the two lines regarding X00 driver.
FILES IN THE PACKAGE
====================
You have to find:
- BUG.COM Main program
- BUG.DOC This file
- BUG.INP sample BUG input file (to be used via F6 key)
- GO.BAT Batch file loading driver and executing BUG
- R.BAT Receive .BAT file (executed by BUG with F9 key)
- S.BAT Send .BAT file (executed by BUG with F8 key)
- J.BAT Jolly .BAT file (Alt-J for its execution)
- LIST.COM Handy utility to display BUG.CAP file
- LIST.DOC Its documentation
This R.BAT file uses GSZ program and ZMODEM protocol to download a file from
the host while S.BAT uses GSZ program and XMODEM to upload a file to remote
host.
But you can use any external protocol you prefer, just change the name and
related parameters in the R.BAT and S.BAT batch files.
CHARACTERS
==========
BUG accepts from the keyboard any type of character from decimal 000 to 255
except for extended codes. For decimal 8 (backspace) BUG correctly makes a
disruptive backspace on the screen while sending a decimal 8 to remote host;
be sure that remote host understands dec 8 as a cancel character.
From Host BUG treats characters from decimal 32 up to decimal 255. Characters
from dec 000 up to dec 32 and dec 127 are stripped.
CAVEATS
=======
. BUG expects the COMMAND.COM path as FIRST line in the environment table
exactly with the following FORMAT (as it must be usually) :
COMSPEC=C:\....\COMMAND.COM
. BUG before printing checks for printer N. 1 (LPT1:) only.
. BUG upload ASCII files with a maximum line length of 80 characters.
SECURITY
========
BUG.EXE has been verified with SCAN utility v 86. No virus has been reported.
Any way verify BUG.EXE size (must be as declared at the beginning) because
any increase in the number of program bytes, is the first symptom of virus
presence (others can infect BUG, then distribute it as a Trojan horse).
CURIOSITY
=========
For curious ones, to get BUG.COM so small, I didn't use C, neither ASSEMBLER,
neither FORTRAN, neither BASIC, neither COBOL, neither PASCAL, neither object
oriented, neither...
HISTORY
=======
1.0 . First version.
1.1 . The name of the Input File is no more fixed. Use BUG command
line format with the new INPut file name at the end.
. If the PRINTER is not ready, BUG waits some seconds then beep
and doesn't allow printing.
1.3 . Added ASCII file upload.
. Added screen border for color displays.
. Fixed a bug on 25th line.